
# === URL をパースする
#
# Author:: krdlab
#
class UrlParser
	attr_accessor :base_url

	def parse(url)
		if url.index(base_url) != 0 then
			raise ArgumentError, "bad url: #{url}"
		end
		url[base_url.length..-1].split(/\//)
	end
end

